function total(a,b)
{
result=a+b
return result
}

When you call this function you must send two arguments with it:

sum=total(2,3)

#Title: The return Statement : JavaScript Functions
#Element: 235: The return Statement : JavaScript Functions
#Article: 170: JavaScript Functions